<html>
<head>
<title>Beispiel</title>
</head>
<body>
	<?php
	/*
	 dies ist nur eine Testdatei um bibParser und bibtexOutput zu testen
	*/
	include('PARSEENTRIES.php');
	include('../../info_struct.php');
	include('bibtex_output.php');
	$info = NEW infos();
	$parse = NEW PARSEENTRIES();
	$parse->expandMacro = TRUE;
	//	$array = array("RMP" =>"Rev., Mod. Phys.");
	//	$parse->loadStringMacro($array);
	//	$parse->removeDelimit = FALSE;
	//	$parse->fieldExtract = FALSE;
	$parse->openBib("bib.bib");
	$parse->extractEntries();
	$parse->closeBib();
	list($preamble, $strings, $entries, $undefinedStrings) = $parse->returnArrays();
	if(array_key_exists ( "title" , $entries[0])){
	    print_r($entries[0]["title"]);
	    $info->title = $entries[0]["title"];
	    echo '<br>';
	}
	if(array_key_exists ( "author" , $entries[0])){
	    print_r($entries[0]["author"]);
	    $info->author = $entries[0]["author"];
	    echo '<br>';
	}
	if(array_key_exists ( "journal" , $entries[0])){
	    print_r($entries[0]["journal"]);
	    $info->journal = $entries[0]["journal"];
	    echo '<br>';
	}
	if(array_key_exists ( "year" , $entries[0])){
	    print_r($entries[0]["year"]);
	    $info->year = $entries[0]["year"];
	    echo '<br>';
	}
	if(array_key_exists ( "volume" , $entries[0])){
	    print_r($entries[0]["volume"]);
	    $info->volume = $entries[0]["volume"];
	    echo '<br>';
	}
	if(array_key_exists ( "number" , $entries[0])){
	    print_r($entries[0]["number"]);
	    $info->number = $entries[0]["number"];
	    echo '<br>';
	}
	if(array_key_exists ( "pages" , $entries[0])){
	    print_r($entries[0]["pages"]);
	    $info->pages = $entries[0]["pages"];
	    echo '<br>';
	}
	if(array_key_exists ( "month" , $entries[0])){
	    print_r($entries[0]["month"]);
	    $info->month = $entries[0]["month"];
	    echo '<br>';
	}
	if(array_key_exists ( "other" , $entries[0])){
	    print_r($entries[0]["other"]);
	    $info->other = $entries[0]["other"];
	    echo '<br>';
	}
	bibtex_output($info);
	//get_bib_by_id("1");
	?>
</body>
</html>
